<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div style="margin-top:58px"></div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active' : pagedata.params.is_pay == 100}" href="javascript:" ng-click="pagedata.params.is_pay=100;tool.get_list('jy_meye/order_show/list/is_pay=100',true)">全部</a>
        <a ng-class="{'external active' : pagedata.params.is_pay == 0}" href="javascript:" ng-click="pagedata.params.is_pay=0;tool.get_list('jy_meye/order_show/list/is_pay=0',true)">待付款</a>
        <a ng-class="{'external active' : pagedata.params.is_pay == 1}" href="javascript:" ng-click="pagedata.params.is_pay=1;tool.get_list('jy_meye/order_show/list/is_pay=1',true)">已付款</a>
		
    </div>
	<div class='fui-content navbar order-list' style="top:1.5rem">
	<div class="fui-list-group order-item" style="margin-top:0" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.ordersn}}</div>
                    </div>
                    <div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">{{item.paytype}}</div>
                    <div class="angle"></div>
                </a> 
                    <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.storename || '店铺名称'}}
                           
                        </div>
                    </a>
                    <a href="" class="external" data-nocache="true" ng-repeat="g in item.goods">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{g.goods_title}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:3rem">
                                ￥<span class="marketprice">{{g.totalprice}}.00</span></div>
                        </div>
                    </a>
				<div class="fui-list-group-title lineblock">
					<span><i class="icon jinyunicon icon-trade" style="font-size: 0.65rem"> 优惠：￥{{item.youhui || 0}}.00</i></span>
					
                </div>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>{{item.goods_num}}</span> 个商品 实付: <span class="text-danger">￥{{item.price}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'jy_meye/order_show/del/','id='+item.id)">删除订单</div>
					<div ng-show="item.is_pay == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="pay_submit({},'jy_meye/order_show/pay/id='+item.id,'jy_meye/order_show/','jy_meye/order_show/')">支付订单</div>
					<div ng-show="item.status == 2" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'jy_meye/order_show/receive/','id='+item.id)">确认收货</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有订单！</p>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
scope.tool.get_list('jy_meye/order_show/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_meye/order_show/list/status='+scope.pagedata.status);
}
</script>